import type { ProfileData, ProfileResult } from '@/types/my'
import { http } from '@/utils/https'

export const getProfileAPI = () => {
  return http<ProfileResult>({
    url: '/member/profile',
  })
}

export const putProfileAPI = (data: ProfileData) => {
  return http<ProfileResult & { token: string }>({
    method: 'PUT',
    url: '/member/profile',
    data,
  })
}
